<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="bean.Category" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
  <head>
    <title></title>
  </head>
  
  <body>
  	 <a href=forwardAction?url=WEB-INF/main.jsp>返回分类列表</a> <br><br><br>
  	 
<form method="post" action="goodsAction?action=update" >
<input name="id" type="hidden" value="${goods.id}"/><br>
分类：
<select name="categoryId">
<c:forEach items="${listCategory}" var="category" varStatus="status">
  <option value ="${category.categoryId}">${category.categoryName}</option>
 </c:forEach>
</select>&nbsp;&nbsp;原先分类为：${person.categoryName}<br>

<!--id categoryId name price label address manufacturer dateBegin shelfLife mainMaterial--> 
名称：<input name="name" type="text"  width="100" value="${goods.name}" /><br>
价格:<input name="price" type="text"  width="100" value="${goods.price}"/><br>
标号:<input name="label" type="text"  width="100" value="${goods.label}"/><br>
产地:<input name="address" type="text"  width="100" value="${goods.address}"/><br>
生产厂家:<input name="manufacturer" type="text"  width="100" value="${goods.manufacturer}"/><br>
生产日期:<input name="dateBegin" type="text"  width="100" value="${goods.dateBegin}"/><br>
保质期:<input name="shelfLife" type="text"  width="100" value="${goods.shelfLife}"/><br>
主要原料：<br>
<textarea name="mainMaterial" rows="10" cols="30">${goods.mainMaterial}</textarea> 
<input type="submit" value="确定修改商品信息"> 
</form>
  </body>
</html>
